package com.aizhixin.lab.project.course.repository;

import com.aizhixin.lab.project.course.entity.TeacherModuleTaskFile;
import com.aizhixin.lab.project.template.entity.ModuleTaskFile;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface TeacherModuleTaskFileRepository extends JpaRepository<TeacherModuleTaskFile,String> {
    List<TeacherModuleTaskFile> findByTaskIdAndDeleteFlag(String taskId, Integer deleteFlag);
    List<TeacherModuleTaskFile> findByTaskIdAndDeleteFlagAndIsHide(String taskId, Integer deleteFlag,Boolean isHide);
    List<TeacherModuleTaskFile> findByTaskIdInAndDeleteFlag(List<String> taskIds,Integer deleteFlag);
    Integer countByTaskIdInAndDeleteFlag(List<String> taskIds, Integer deleteFlag);
    List<TeacherModuleTaskFile> findByTaskIdAndFileTypeAndDeleteFlag(String taskId,Integer fileType,Integer deleteFlag);

    Integer deleteByTaskId(String taskId);
}
